<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>영화 구매 내역</title>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="noindex" name="robots">
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 Gmt">
<meta http-equiv="Cache-Control" content="No-Cache">
<meta http-equiv="Pragma" content="No-Cache">

<link id="MainpageStyle1" type="text/css" rel="stylesheet"	href="/spring-GOP/css/iframe.css">
<link type="text/css" rel="stylesheet" href="/spring-GOP/css/common.css">
<link id="MainpageStyle" type="text/css" rel="stylesheet"	href="/spring-GOP/css/myprimus/style_50.css">
<link id="pageStyle" type="text/css" rel="stylesheet"	href="/spring-GOP/css/myprimus/style_5040.css">
<script type="text/javascript">
	function onMovieClick(idx) {
		document.location="/spring-GOP/movie/moviedetail?num=" + idx;
	}
</script>
</head>
<body>
	<form action="MyInquiry.jsp" method="post">
		<div class="sub-main-section c5040 " id="content"
			style="visibility: visible;">
			<div class="private-qna ">
				<table class="qna-table" style="padding: 0;"
					summary="이 표는 1:1 문의 정보를 제공하며 번호, 제목, 상태, 등록일별로 구성되어 있습니다.">
					<caption>영화 구매 내역</caption>
					<colgroup>
						<col width="12%">
						<col width="*">
						<col width="11%">
						<col width="17%">
					</colgroup>
					<thead>
						<tr>
							<th scope="col" class="col-1"><span>번호</span></th>
							<th scope="col" class="col-2"><span>영화제목</span></th>
							<th scope="col" class="col-3"><span>날짜</span></th>
							<th scope="col" class="col-4"><span>가격</span></th>
						</tr>
					</thead>
					<tbody>

						<c:forEach var="item" items="${buyList}" varStatus="idx">
							<tr class="tr-end">
								<td scope="col" class="col-1">${idx.index + 1}</td>
								<td scope="col" class="col-2"><a style="cursor:pointer;" onclick="javascript:onMovieClick(${item.movie_num})">${item.movie_title}<%-- <%=list.get(i).getMovieTitle() %> --%></a></td>
								<td scope="col" class="col-3">${item.regdate}<%-- <%=sdf.format(list.get(i).getRegdate()) %> --%></td>
								<td scope="col" class="col-4">${item.movie_price}<%-- <%=list.get(i).getMoviePrice() %> --%></td>
							</tr>
						</c:forEach>

					</tbody>
				</table>
			</div>
			<div class="page-box myqna" style="margin-top: 50px;">
				<div class="page-box myqna2">




					<input id="_hidPageNum" name="_hidPageNum" type="hidden" value="1">
					<input id="_hidActionName" name="_hidActionName" type="hidden"
						value="MyInquiry"> <input id="_hidControlName"
						name="_hidControlName" type="hidden" value="Reservation">
					<input id="_hidOrderBy" name="_hidOrderBy" type="hidden"
						value="DESC"> <input id="_hidOrderColumn"
						name="_hidOrderColumn" type="hidden" value=""> <input
						id="_hidSearchKeyword" name="_hidSearchKeyword" type="hidden"
						value="parachoi85"> <input id="_hidSearchCondition"
						name="_hidSearchCondition" type="hidden" value=""> <input
						name="_hidSearchSubmit" id="_hidSearchSubmit" type="submit"
						style="display: none">




				</div>
			</div>
		</div>
	</form>
</body>
</html>